From: Chong Yidong Date: Sat, 28 Jan 2012 02:01:05 +0000 (+0800) Subject: * mail/rmail.el (rmail-mail-return): Only switch to live buffers. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1086 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9ff19f935fadfc8b2ac2acf434f5c7e2a914b0f2;p=emacs.git * mail/rmail.el (rmail-mail-return): Only switch to live buffers. --- diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 813912f2e9b..7d4c7c15447 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -3620,7 +3620,7 @@ to switch to." (cond ((null rmail-flag) ;; If the Rmail buffer is not in the next window, switch ;; directly to the Rmail buffer specified by NEWBUF. - (if newbuf + (if (buffer-live-p newbuf) (switch-to-buffer newbuf))) ;; If the Rmail buffer is in the next window, switch to ;; the summary buffer if `mail-bury-selects-summary' is